package cn.snowsoft.iot.module.warning.event;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


@Configuration
public class EventExecutorConfig {

    @Bean("eventAsyncExecutor")
    public ExecutorService eventAsyncExecutor() {
        return Executors.newCachedThreadPool();
    }
}
